package com.ruoyi.mdm.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 监控邮件配置 monitor_email_config
 * 
 * @author ruoyi
 */
@Getter
@Setter
@ToString
public class SkuEmailConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 邮件配置ID */
    private String emailConfigId;

    /** 邮箱地址 */
    @NotBlank(message = "邮箱地址不能为空")
    @Size(min = 0, max = 64, message = "邮箱地址长度不能超过64个字符")
    private String userName;

    /** 密码 */
    @NotBlank(message = "密码不能为空")
    @Size(min = 0, max = 64, message = "密码不能超过64个字符")
    private String passwd;

    /** 服务器地址 */
    @NotBlank(message = "服务器地址不能为空")
    @Size(min = 0, max = 64, message = "服务器地址不能超过64个字符")
    private String host;

    /** 端口 */
    @NotBlank(message = "端口不能为空")
    @Size(min = 0, max = 20, message = "服务器地址不能超过20个字符")
    private String port;

    /** 协议 */
    private String protocol;

    /** 是否启用ssl */
    private String useSsl;

    /** 启用状态 */
    private String enableFlag;

    /** 删除标志 */
    private String delFlag;
    /** 邮件类型：01：系统邮件  :02监控读取邮件内容 */
    private String emailType;

    private String encryptionMethod;

    private String clientId;

    private String clientSecret;

    private String tenantId;

    private String scope;
}
